<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>后台管理系统权限管理</title>
<link href="/TP001/Public/css/base.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="/TP001/Public/css/common.css" type="text/css" media="screen" />
<link href="/TP001/Public/css/icons.css" rel="stylesheet" type="text/css">

</head>
<body>
<div class="common_title">
<span>权限管理</span>
</div>
<div class="divContent">
<div class="divContent">
	<div class="formTable">
			<div class="formAdd">
				
					<a class="butbase" href="/TP001/index.php/Admin/Auth/add"><span class="icon-add">添加</span></a>
				
			</div>
			<table width="99%" border="0" cellpadding="0" cellspacing="0" class="tableClass">
				<tbody><tr class="alt">
					<th width="3%" nowrap="nowrap">
						序号
					</th>
					<th width="100" nowrap="nowrap">权限名称</th>
                    <th width="100" nowrap="nowrap">父ID</th>
                    <th width="100" nowrap="nowrap">控制器</th>
                    <th width="100" nowrap="nowrap">方法</th>
                    <th width="100" nowrap="nowrap">全路径</th>
                    <th width="100" nowrap="nowrap">等级</th>
                    <th width="100" nowrap="nowrap">操作</th>
					
				</tr>
				
					
                    <?php if(is_array($auth)): $i = 0; $__LIST__ = $auth;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><tr class="">
<td align="center" nowrap="nowrap">
<?php echo ($v["id"]); ?>
</td>
 <td align="left"><?php if($v["level"] == '1' ): ?>　--<?php elseif($v["level"] == '2' ): ?>　　----<?php else: endif; echo ($v["auth-name"]); ?></td>
 
<td align="center" nowrap="nowrap">
  <?php echo ($v["pid"]); ?>					
</td>
 <td align="center" nowrap="nowrap">
<?php echo ($v["auth-c"]); ?>
</td>

 <td align="center" nowrap="nowrap">
<?php echo ($v["auth-a"]); ?>
</td>

 <td align="center" nowrap="nowrap">
<?php echo ($v["auth-path"]); ?>
</td>
 <td align="center" nowrap="nowrap">
<?php echo ($v["level"]); ?>
</td>

 <td align="center" nowrap="nowrap">

<a class="butbase"  href="/TP001/index.php/Admin/Auth/update/id/<?php echo ($v["id"]); ?>"><span class="icon-edit"> 修改</span></a>
<a class="butbase" href="/TP001/index.php/Admin/Auth/dele/id/<?php echo ($v["id"]); ?>" onClick="return confirm('确定删除?');"><span class="icon-remove">删除</span></a>
</td>

                        </tr><?php endforeach; endif; else: echo "" ;endif; ?>
					
			
						
			</tbody></table>
	
	</div>
</div>
    
       
    
	

</body>
</html>